Perioperative pulmonary function tests